using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication5.UILayer
{
    public partial class frmBuscarMedicamento : Form
    {
        ServiciosWeb.Service servicio = new ServiciosWeb.Service();
        DataTable midatatable;
        DataTable datatable2;

        public frmBuscarMedicamento(DataTable listaMedicamentos)
        {
            InitializeComponent();
            midatatable = listaMedicamentos;
            gridMedSelected.DataSource = midatatable;
        }

        private void btnBuscarCodigo_Click(object sender, EventArgs e)
        {
            datatable2 = servicio.medicamentosBuscarxId(txtCodigo.Text);
            c1fgMedicamentos.DataSource = datatable2;
        }

        private void btnAgregar_Click(object sender, EventArgs e)
        {
            AgregarMedicamento();
        }

        private void AgregarMedicamento()
        {
            DataRow fila = midatatable.NewRow();
        }


    }
}